<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="../common/default.jsp"%>
<meta name="keywords" content="图片SNS社区,视频SNS社区,音乐SNS社区,个性化圈子,个性化视频,问题发现,问题推荐,问题分享,热点视频,精彩图片,最好音乐" />
<meta name="description" content="优问网让你的问题会说话,是一个图片、视频、音乐SNS社区，玩转优问，分享问题，一网打尽全网最热图片、最好看视频、最好听音乐。凭借最快速、最全的热点发掘，独有的圈子体验，在这里你能找到同趣好友，分享热门、搞笑、美女等，尽享视觉社交的最大乐趣。">
<link rel="canonical" href="http://www.yoasking.com/" />
<link type="text/css" rel="stylesheet" href="/css/home.css" />
<link type="text/css" rel="stylesheet" href="/css/stream.css"/>
<script type="text/javascript" src="/js/stream.js"></script>
<script type="text/javascript" src="/js/home.js"></script>
<script type="text/javascript" src="/js/personal/myHome.js"></script>
<script type="text/javascript">
	$(function(){
		scrollLoad(findNoLoginLastestAsk);
		//findNoLoginLastestAsk();
		askListReg();
		toggleRegister();
	});
	function findNoLoginLastestAsk() {
		var streaml = $("#streamList");
		if(streaml.attr("isEnd")=="1"){
			alertTipDown("没有了!", "cuo");
			return;
		}
		var url = "../ask/findNoLoginLastestAsk";
		var toPage = parseInt(streaml.attr("toPage"));
		var params = {
				"query.toPage" : toPage,
				"query.lastAskId" : streaml.attr("lastAskId")
		};
		doAjaxHtml(url, params, function(response) {
					var resultObjAsk = $(response);
					var totalPage = parseInt(resultObjAsk.attr("totalPage"));
					if(toPage == totalPage){
						streaml.attr("isEnd", "1");
					}else{
						streaml.attr("toPage", toPage + 1);
					}
					var askList = resultObjAsk.find(".stream-one");
					var askIdArr = [];
					var streamCol1 = streaml.find(".stream-col:eq(0)");
					var streamCol2 = streaml.find(".stream-col:eq(1)");
					var streamCol3 = streaml.find(".stream-col:eq(2)");
					for (var i = 0; i < askList.length; i++) {
						if (i % 3 == 0) {
							streamCol1.append(askList.eq(i));
						} else if (i % 3 == 1) {
							streamCol2.append(askList.eq(i));
						} else if (i % 3 == 2) {
							streamCol3.append(askList.eq(i));
						}
						askIdArr.push(askList.eq(i).attr("id"));
					}
					if(toPage==1){
						streaml.attr("lastAskId",askIdArr[0].substring(4));
					}
					askListReg();
					var loadTag=$('<div class="loadTag" />').appendTo($('#container'));
				});
	}

	function askListReg() {
		popPub($("#streamList .stream-stat-likes a"),$('#pop_login'),$('#pop_login h3 a'));
		popPub($("#streamList .stream-vote-trigger"),$('#pop_login'),$('#pop_login h3 a'));
		popPub($(".stream-expander textarea"),$('#pop_login'),$('#pop_login h3 a'));
	}
</script>
<title>优问网-发现精彩问题 分享无限快乐</title>
</head>
<body>
<%@include file="../common/noLoginHead.jsp"%>
	<div id="container">
		<div id="streamList" isEnd="0" toPage="2" lastAskId='<s:property value="asks[0].id"/>'>
		<!-- 
			<div class="stream-col"></div>
			<div class="stream-col"></div>
			<div class="stream-col"></div>
		-->
		<%@include file="../ask/askList.jsp"%>
		</div>
		<div class="loadTag"></div>
	</div>
	<%@include file="../common/loginDiv.jsp"%>
	<%@include file="../common/registerDiv.jsp"%>
	<%@include file="../common/tipDiv.jsp"%>
	<%@include file="../common/footer.jsp"%>
</body>
</html>